package com.bbva.gptf.dto.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;


@SuppressWarnings("rawtypes")
public class ValidacionMapper implements RowMapper {

	private static final String CD_CONTRATO = "CD_CONTRATO";
	private static final String NB_POLITICA = "NB_POLITICA";
	
    public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
    	Validacion validacion = new Validacion();
    	validacion.setCdContrato(rs.getLong(CD_CONTRATO));
    	validacion.setPolitica(rs.getString(NB_POLITICA));
    	return validacion;
	}
}

